-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improve member api for brb, update test-app with brb #4027
feat: improve member api for brb, update test-app with brb #4027
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, left some comments.
@@ -3780,11 +3791,19 @@ function createMembersTable(members) { | |||
|
|||
td5.appendChild(label5); | |||
|
|||
|
|||
if (isCurrentUser(member)) { | |||
td6.appendChild(createButton(member.isBrb ? 'Remove away' : 'Apply away', toggleBrb, {id: 'brb-btn'})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change the wording here to "Step Away" and "Back to Meeting". That just seems the most clear to me, and having it match the client UI makes it easy to understand that this is mapped to the step away feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brycetham I have tried this combination, but I don't like that "Back to Meeting" span on two lines and I can't do a style fix for that easily, I need to change the style for the table, not sure if this is worth that, but I'm open to discuss
export type ParticipantWithBrb = { | ||
controls?: { | ||
brb?: { | ||
enabled: boolean; | ||
}; | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just looking at ParticipantWithRoles
... in that type, neither controls
nor role
is optional, so I just want to double check that we do want controls
and brb
to both be optional here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brycetham good point. I believe this type is wrong, because I reused this function getControlsRoles
logic and it contains optional chaining inside, so I assume it can be undefined
but the type doesn't show that. For example, when this brb feature doesn't work I believe it can be optional. In most cases in code logic when they deal with controls
logic we have undefined checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brycetham I couldn't find information in the locus dto documents, so I will remove the optional parameter since none of my test cases require it to be optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved 👍 But I noticed #4027 (comment) wasn't resolved yet... not sure if you meant to resolve it and forgot to push, or if you did not plan on changing anything here.
@brycetham Sorry for not explaining this clearly, I forgot to answer in more detail why I haven't updated this type. I have tested that |
COMPLETES # SPARK-574653
This pull request addresses
Implements test-app UI changes for better testing purposes of step away feature, adds new member property
isBrb
for better work with getting this data from the locus.by making the following changes
Adds a new participant list table column that displays the new away state and adds the possibility of changing the away state for the current user.
Change Type
The following scenarios were tested
tested manually using test-app with convergedats account, checked work of existing test cases
I certified that
I have read and followed contributing guidelines
I discussed changes with code owners prior to submitting this pull request
I have not skipped any automated checks
All existing and new tests passed
I have updated the documentation accordingly
Make sure to have followed the contributing guidelines before submitting.